package com.zndroid.gridview.load;

import android.content.Context;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.zndroid.gridview.IImageBean;

public abstract class Loader {
    protected Loader nextLoader;

    public void setNextEngine(Loader nextLoader) {
        this.nextLoader = nextLoader;
    }

    /**
     * load image enter
     *
     * @param context Context
     * @param imageView ImageView
     * @param engine IImageDisplayEngine
     * @param bean entity
     * @param loadCallBack ILoadCallBack
     * */
    public abstract void load(
            @NonNull Context context,
            @NonNull ImageView imageView,
            @NonNull IImageDisplayEngine engine,
            @NonNull IImageBean bean,
            @Nullable ILoadCallBack loadCallBack);
}
